import http from '@/utils/http'

// 注册

export const register = (data) => http.post('user/register', data)
export const sign = (data) => http.post('user/login', data)
export const getUserInfo = () => {
  return http('/user/currentUser')
}
